import request from '@/utils/request'

export function jointOrderStat(data) {
  return request({
    url: `/inlet/entStat/jointOrderStat?companyId=${data}&type=entDetails`,
    method: 'get',
  })
}
export function sumProduceDispose(data) {
  return request({
    url: `/inlet/entStat/sumProduceAndDispose?companyId=${data}&type=entDetails`,
    method: 'get',
  })
}
export function wasteTypeSumRank6(data, time,type) {
  return request({
    url: `/inlet/entStat/typeSumRank6?companyId=${data}&type=${type}&time=${time}`,
    method: "get",
  });
}
export function vehicleStatics(data,type) {
  return request({
    url: `/inlet/entStat/vehicle?companyId=${data}&type=${type}`,
    method: "get",
  });
}

export function acceptSolid(data,type) {
  return request({
    url: `/inlet/entStat/accept?companyId=${data}&type=${type}`,
    method: "get",
  });
}

export function produceDisposeSum(data,type) {
  return request({
    url: `/inlet/entStat/produceDisposeSum?companyId=${data}&type=${type}`,
    method: "get",
  });
}
export function riskWarning(data) {
  return request({
    url: '/inlet/gf-warning/page',
    method: 'post',
    data,
  })
}
export function vehicleApicture(data,type) {
  return request({
    url: `/inlet/entStat/vehicleApicture?companyId=${data}&type=${type}`,
    method: "get",
  });
}
// 获取验证码
export function getCodeImg() {
  return request({
    url: '/inlet/captchaImage',
    headers: {
      isToken: false
    },
    method: 'get',
    timeout: 20000
  })
}
export function login(data) {
  return request({
    url: '/inlet/login',
    headers: {
      isToken: false,
      repeatSubmit: false
    },
    method: 'post',
    data: data
  })
}
export function getInfo() {
  return request({
    url: '/inlet/getInfo',
    method: 'get'
  })
}
export function logout() {
  return request({
    url: '/inlet/logout',
    method: 'post'
  })
}
